package com.mspbots.usermanage.controller;

import com.mspbots.api.client.CoreClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.concurrent.Callable;


/**
 * @author billb
 */
@RestController
@RequestMapping("account")
public class TenantAccountController {

    @Autowired
    private CoreClient coreClient;

    @GetMapping("info")
    public Callable info(@RequestParam Map<String, Object> params) {
        return () -> coreClient.get("", params);
    }

}
